package reflect.hhh;

import reflect.annotations.AutoRunClass;

public class ReflectDemo13 {
    public static void main(String[] args) throws Exception{
        Class cls=Class.forName("reflect.Person");
        boolean mark=cls.isAnnotationPresent(AutoRunClass.class);
        if(mark){
            System.out.println("该类被标注了AutoRunClass注解");
        }else{
            System.out.println("该类没有被标注了AutoRunClass注解");
        }
    }
}
